package com.ryl.yomall.cart.client;

import com.ryl.yomall.model.cart.CartInfo;
import com.ryl.yomall.model.common.result.Result;
import com.ryl.yomall.model.common.util.AuthContextHolder;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.PostMapping;

import javax.servlet.http.HttpServletRequest;
import java.util.List;

/**
 * @Date 13:34
 * @Author ryl
 */
@FeignClient(value = "service-cart")
public interface CartFeignClient {

    @GetMapping("/api/cart/addToCart/{skuId}/{skuNum}")
    CartInfo addToCart(@PathVariable("skuId") Long skuId,@PathVariable("skuNum") Integer skuNum);
    @GetMapping("/api/cart/findChecked")
    public List<CartInfo> findChecked();

}

